<?php
/**
 * 产品列表文件
 *
 * @author		Arthur(ArthurXF@gmail.com)
 * @copyright	(c) 2006 by bizeway.com
 * @version		$Id$
 * @package		ArthurXF
 * @subpackage	product
 */
require_once('config/config.inc.php');
require_once("class/product.class.php");

$objWebInit = new product();
//数据库连接参数
$objWebInit->setDBG($arrGPdoDB);
//smarty参数
$arrGSmarty['caching'] = false;
$objWebInit->arrGSmarty = $arrGSmarty;
//翻页参数
$objWebInit->arrGPic = $arrGPic;
$objWebInit->arrGPage = $arrGPage;
$objWebInit->db();

// 公用block
//include '_block.php';

$intID1 = intval($_GET['pid1']);
$intID2 = intval($_GET['pid2']);

$arrInfo1 = $objWebInit->getInfo($intID1);
$arrInfo2 = $objWebInit->getInfo($intID2);


$strTitle1 =  $arrInfo1['brand'].$arrInfo1['title'].$arrInfo1['model'];
$strTitle2 =  $arrInfo2['brand'].$arrInfo2['title'].$arrInfo2['model'];

//全站公用block
include '../_block.php';

// 输出到模板
$arrMOutput["smarty_assign"]['arrData1'] = $arrInfo1;
$arrMOutput["smarty_assign"]['arrData2'] = $arrInfo2;
$arrMOutput["smarty_assign"]['FileCallPath'] = $objWebInit->arrGPic['FileCallPath'];
$arrMOutput["smarty_assign"]['strTitle1'] = $strTitle1;
$arrMOutput["smarty_assign"]['strTitle2'] = $strTitle2;
$arrMOutput['smarty_assign']['Title'] = $strTitle1.'对比'.$strTitle2.' - '.$arrGWeb['name'];
$arrMOutput['smarty_assign']['Description'] = $strTitle1.'对比'.$strTitle2.' - '.$arrGWeb['name'];
$arrMOutput['smarty_assign']['Keywords'] = $strTitle1.'对比'.$strTitle2.' - '.$arrGWeb['name'];
$arrMOutput["smarty_assign"]['MAIN'] = $arrGSmarty['main_dir'].'compare.html';
$objWebInit->output($arrMOutput);
?>